Replication materials for Valentim, Daniel Ziblatt, and Elias Dinas, "How
Mainstream Politicians Erode Norms", to be published in the British Journal of Political Science.


Software requirements

This replication package has been tested locally on the following
operating system and R versions:

- macOS 15.4.1, R 4.5.0 (CRAN)

We recommend the following versions of R packages to ensure consistent
simulation results and standard errors.

- Rmisc=1.5.1
- tidyverse=2.0.0
- readxl=1.4.5
- stargazer=5.2.3
- kableExtra=1.4.0
- sandwich=3.1-1
- broom=1.0.8
- dotwhisker=0.8.3
- jtools=2.3.0
- scales=1.3.0
- xtable=1.8-4
- DeclareDesign=1.0.10
- DesignLibrary=0.1.10
- future.apply=1.11.3

Replication instructions

To replicate the figures and tables in the main paper and the appendix,
simply execute the following command in your terminal

  ./main.sh

This shell script will pull and install all necessary packages from
CRAN and execute all the R scripts in `code' folder. Results are stored
in the `plots' and `tables' folders respectively.
